package com.zrrd.mcl.activity.client;

import com.zrrd.mcl.activity.client.impl.ActivityFeignClientImpl;
import com.zrrd.mcl.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-activity",fallback = ActivityFeignClientImpl.class)
public interface ActivityFeignClient {

    //查看秒杀商品列表
    @GetMapping("/api/activity/seckill/findAll")
    Result findAll();

    //获取商品详情
    @GetMapping("api/activity/seckill/getSeckillGoods/{skuId}")
    Result getSeckillGoods(@PathVariable("skuId") Long skuId);

    //结算页面数据
    @GetMapping("api/activity/seckill/auth/trade")
    Result trade();

}
